<?php /* Smarty version 2.6.22, created on 2009-12-07 11:09:21
         compiled from modulos/ingresarEvento.tpl */ ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/estilos.css">
<link rel="stylesheet" type="text/css" href="css/calendario.css">
<title>Untitled Document</title>
<?php echo '
<style type="text/css">
    body{
        color:#333333;
		direction:ltr;
        font-family:Arial, Helvetica, sans-serif;
        font-size:11px;
		text-align:left;
    }
</style>
'; ?>


<?php echo '
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAnfs7bKE82qgb3Zc2YyS-oBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSySz_REpPq-4WZA27OwgbtyR3VcA&sensor=true_or_false" type="text/javascript"></script>
<script type="text/javascript">
    function initialize() {
      if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map_canvas"));
		var center = new GLatLng(-0.23,-78.5);
		map.setCenter(center, 11);
		var customUI = map.getDefaultUI();
		var marker = new GMarker(center, {draggable: true});
		map.enableDoubleClickZoom();
        map.setCenter(center, 11);

		//Mostrar coordenadas			
		GEvent.addListener(marker, "dragend", function(point) {
			//marker.openInfoWindowHtml("<b>Coordenadas:</b> "+point.y+","+point.x);
			document.frmNuevoEvento.filLatitud.value=point.y;
			document.frmNuevoEvento.filLongitud.value=point.x;
		});
		map.addOverlay(marker);
		map.setUI(customUI);
      }
    }
	function aCiudad(objeto) {
		var num = objeto.value;
		if(num == 0)
			center = new GLatLng(-0.23,-78.5);
		if(num == 1) {
			center = new GLatLng(-2.15,-79.90);
			var marker = new GMarker(center, {draggable: true});
		}
		if(num == 2)
			center = new GLatLng(-0.23,-78.5);
		if(num == 3)
			center = new GLatLng(-0.23,-78.5);
		map.setCenter(center, 11);
	}
</script>
<script language=\'javascript\' src="Scripts/popcalendar.js"></script>
'; ?>

</head>

<body onload="initialize()" onunload="GUnload()">
	<a href="eventos.php" class="menu-agenda-ingresar"><< Regresar</a>
    <div class="instruccion-evento">Arrastrar el puntero hasta donde se va a realizar el evento.</div>
    <div class="mapa" id="map_canvas" style="width: 600px; height: 300px; border:solid 1px;"></div>
    <div class="menu-ciudades">
    Ir a ciudad:
    <select onchange="aCiudad(this)">
    <option value="0">Quito</option>
    <option value="1">Guayaquil</option>
    <option value="2">Cuenca</option>
    <option value="3">Manta</option>
    </select>
    </div>
    <div class="ingreso-evento">
    <form name="frmNuevoEvento" id="frmNuevoEvento" action="fIngresarEvento.php" method="post">
    	<table border="0">
    	<tr><td>Nombre:</td><td><input type="text" class="txtfields" name="txtNombre" /></td></tr>
        <tr><td>Fecha:</td><td><input type="text" class="txtfields" name="txtFecha" id="txtFecha" onClick="popUpCalendar(this, frmNuevoEvento.txtFecha, 'yyyy-mm-dd');" /></td></tr>
        <tr><td>Hora:</td>
        <td>
        	<select class="txtfields" name="selHora">
            <?php $_from = $this->_tpl_vars['horas']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['h']):
?>
            	<option value="<?php echo $this->_tpl_vars['h']; ?>
"><?php echo $this->_tpl_vars['h']; ?>
</option>
            <?php endforeach; endif; unset($_from); ?>
            </select>&nbsp;h
            <select class="txtfields" name="selMinuto">
            <?php $_from = $this->_tpl_vars['minutos']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['m']):
?>
            	<option value="<?php echo $this->_tpl_vars['m']; ?>
"><?php echo $this->_tpl_vars['m']; ?>
</option>
            <?php endforeach; endif; unset($_from); ?>
            </select>&nbsp;m
        </td></tr>
        <tr><td>Tipo de evento:</td>
        <td>
        	<select class="txtfields" name="selTipo">
            <option value="0">Reunion de estudios</option>
            <option value="1">Conferencia</option>
            <option value="2">Curso</option>
            <option value="3">Casa abierta</option>
            <option value="4">Grupo de lectura</option>
            <option value="5">Campeonato</option>
            <option value="6">Novatada</option>
            <option value="7">Concierto</option>
            <option value="8">Fiesta</option>
            <option value="9">Caida</option>
            </select>
        </td></tr>
        <tr rowspan=2><td>Descripci&oacute;n:</td><td><textarea name="txtDescripcion" class="txtfields-fecha"></textarea></td></tr>
        <tr><td>Nivel de seguridad:</td><td><input type="radio" name="rdoNivel" class="txtfields" value="0" />Amigos</td></tr>
        <tr><td>&nbsp;</td><td><input type="radio" name="rdoNivel" class="txtfields" value="1" />Comunidad</td></tr>
        <tr><td>&nbsp;</td><td><input type="radio" name="rdoNivel" class="txtfields" value="3" />General</td></tr>
        <input type="text" name="filLatitud" value="-0.23" />
        <input type="text" name="filLongitud" value="-78.5" />
        <tr><td colspan="2"><center><input type="submit" class="boton" value="Aceptar" /></center></td></tr>
        </table>
    </form>
    </div>
</body>
</html>